package com.eduadmin.service;

import com.eduadmin.entity.User;
import com.eduadmin.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    private final UserMapper userMapper;
    @Autowired
    public UserServiceImpl(UserMapper userMapper){
        this.userMapper = userMapper;
    }
    @Override
    public List<User> getAll() {
        return userMapper.getAll();
    }

    @Override
    public void saveBatch(List<User> list) {
        userMapper.saveBatch(list);
    }
}
